you are replacing the black piece that goes along the top do you need to unglue the glass. The other rubber just peels out from the corner pieces and has a groove in it that fits around the edge of the glass. The top metal corner pieces may get bent on removal of the molding beneath it so you might order replacement beforehand, or you can just wait and see if yours pop out with no problem.
I replaced all my moldings last summer. Here is the part numbers: molding that goes around side and bottom of rear windshield: 90372-30p00 RH corner molding: 90366-30p00 LH corner molding: 90367-30p00